<?
// $userdata["user_id"] > 0


  if ($userdata["user_type"] == "2") 
  { 
     $moto_login = 0;
  } 
  else 
  { 
     $moto_login = 1;
  } 

  $sitepage = 1; //"http://moto/index.php";
//  print_r ($userdata);
  
  $smarty -> assign('moto_login',$moto_login);
  $smarty -> assign('moto_username',$userdata['username']);
  $smarty -> assign('sitepage',$sitepage);
  $smarty -> assign('moto_sid',$userdata['session_id']);
    
//-------------end authorize  
?>